package com.fallsvc.re.javasesets.dstackandqueue;

import java.util.ArrayDeque;
import java.util.LinkedList;
import java.util.Queue;

/**
 * @auther falls_vc
 * description:
 * @date 2025/10/18  15:39
 */
public class Demo3 {
    public static void main(String[] args) {
        Queue<Integer> queue = new LinkedList<>();
        Queue<Integer> queue1 = new ArrayDeque<>();
        queue1.offer(1);
        queue1.offer(2);
        queue1.offer(3);
        while (!queue1.isEmpty()) {
            System.out.println(queue1.poll());
        }

    }
}
